package com.oocl.pojo;

/**
 * 用户
 * @author GANAB
 *
 */
public class Customer implements Comparable<Customer>{

	private String id;
	private String name;
	private String email;
	private String sex;
	private String birthday;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", email=" + email
				+ ", sex=" + sex + ", birthday=" + birthday + "]";
	}
	
	public int compareTo(Customer o) {
		Integer id1 = Integer.parseInt(this.id);
		Integer id2 = Integer.parseInt(o.getId());
		return id1-id2;
	}
	
}
